eFAWATEERcom BANK API icon

eFAWATEERcom BANK API

(0 reviews)

Prepaid Validation

URLs :

Description : This service allows the channel or Bank itself to initiate a prepaid transaction to validate it before payment by eFAWATEERcom.

The service is intended to involve a set of validations on the potential prepaid payment, if the validation process is successful, eFAWATEERcom will generate and send a validation code in the response message. Before sending the prepaid payment transaction, Bank/PSP should validate the prepaid transaction first using the prepaid validation request. Save the validation Code send it during the payment request.

Mulesoft Request:

Mandatory Headers: x-channel-id,x-client-trace-id, x-bank-id,client_id, client_secret

Optional Headers: x-sub-channel-id, x-user-id, Authorization, x-debug-flag, x-customer-id

Request Body: application/json

Field NameTypeLengthOccurrenceDescription
prepaidValidationObjectM
billingInfoObjectM
acctInfoObjectM
billingNoString50CRepresents the unique identifier of subscription in a specific service provided by the biller
billerCodeInteger3MRepresents the unique code of the Biller
End of acctInfo
dueAmtDecimal12,3Othe due amount of the uploaded bill
serviceTypeDetailsObjectM
serviceTypeString25MRepresents the service type of the biller
prepaidCatString20CRepresents the prepaid category related to a specific prepaid service of a biller
End of serviceTypeDetails
payerInfoObjectM
idTypestring3CRepresents a unique identifier type (The official number used to identify a customer)
idstring20CThe identification of the customer based on the chosen value from the IdType field
nationchar2CEnum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait
namestring20M
phonestring20O
addressstring100O
emailstring100O
joebppsNoInteger10CRepresents the unique identifier of the customer profile in eFAWATEERcom
End of 'payerInfo'
End of ' billingInfo '
End of ' prepaidValidation '
{
"prepaidValidation": {
"billingInfo": {
"acctInfo": {
"billingNo": "07xxxxxxxxx",
"billerCode": 42
},
"dueAmt": 45,
"serviceTypeDetails": {
"serviceType": "Mobile",
"prepaidCat": "JD_5"
},
"payerInfo": {
"joebppsNo": 5484556455
}
}
}
}

Mulesoft Response:

Success Response: (200)

Response Body: application/json

Field NameTypeLengthOccurrenceDescriptionValidation
statusObjectM
successBooleanMtrue false
codeString10MError Code“0” incase of success or Error Code
reasonCodeString50OError Type or Error categoryAdd this tag only incase of error
arabicMessageString200MEnglish message translated to Arabicتمت العملية بنجاح in case of success or arabic translated error in case of known errors
englishMessageString200MDescription about the processing“The Operation has been Successfully Completed” Or error Description
End of status
responseObjectOExists if success = true
prepaidValidationObjectM
billingInfoObjectM
resultObject
errorCodestring3M
errorDescstring100M
severityEnum, string7MEnum: Error, Info
End of result
acctInfoObjectM
billingNoString50CRepresents the unique identifier of subscription in a specific service provided by the biller
billerCodeInteger3MRepresents the unique code of the Biller
End of acctInfo
dueAmtDecimal12,3Mthe due amount of the uploaded bill
feesAmtDecimal12,3CRepresents the Total Fees Amount on the payment
validationCodestring50CRepresents the unique code of the Prepaid transaction used to validate it throughout its cycle
msgLabelstring500ORepresents a label or note about a transaction by the biller
serviceTypeDetailsObjectM
serviceTypeString25MRepresents the service type of the biller
prepaidCatString20CRepresents the prepaid category related to a specific prepaid service of a biller
End of serviceTypeDetails
remittanceInfoObjectC
senderObjectM
enNameString150MEnglish Name
arNameString200OArabic Name
nationEnum, String2MEnum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait
idTypeEnum, String3M
idstring20M
End of 'sender'
beneficiaryObjectM
enNameString150M
arNameString200O
nationEnum, String2MEnum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait
End of 'beneficiary'
transferReasonString100MRepresent the remittance transfer reason
receivingCountryEnum, String2MEnum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait
End of 'remittanceInfo'
additionalInfoObjectO
custNameString150M
freeText300MRepresents any extra info biller can send
End of 'additionalInfo'
End of billingInfo
End of ' prepaidValidation '
End of ‘ response ‘
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"prepaidValidation": {
"billingInfo": {
"result": {
"errorCode": "8",
"errorDesc": "Success",
"severity": "Info"
},
"acctInfo": {
"billingNo": "07xxxxxxxxxx",
"billerCode": "42"
},
"dueAmt": "7.5",
"validationCode": "50421",
"msgLabel": "Sample Message",
"serviceTypeDetails": {
"serviceType": "Mobile",
"prepaidCat": "JD_5"
}
}
}
}
}

Sample Error Response:

Error codes :

400:

content-type: JSON

{
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "",
"englishMessage": "Invalid json value was provided"
}

Reviews